const nunjucks = require("nunjucks");
const Koa = require("koa");
const app = new Koa();
const expose = require("./expose");

app.use(expose);   

app.use(async (ctx,next)=>{
    ctx.render("index.html",{
       title:"demo"
    });
    await next();
})



app.listen(3000,()=>{
    console.log("服务器运行的地址是:http://127.0.0.1:3000");
})

